img {margin-right: 10px;}

.deleted-video {background-color: rgba(255, 0, 0, 0.4);}
.deleted-vod {background-color: rgba(255, 0, 0, 0.4);}

.video a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.thumb {
    position: relative;
    display: inline-block;
}

.thumb img {
    display: block;
    border: 1px solid #000000;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 14px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    pointer-events: none;
}

.videoToggles {
    margin-left: 10px;
    margin-bottom: 10px;
    padding: 6px;
    font-weight: 600;
}

.video img {
    width: 230px;
    height: auto;
    flex-shrink: 0;
}

.video h3 {margin: 0;}

#pfp {
    width: 150px;
    float: left;
    margin-right: 20px;
    cursor: pointer;
}

/* ===== ICON (GRID) VIEW ===== */
.videos-row.icon-view {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1450px;
    margin: auto;
}
.videos-row.icon-view .video a {
    flex-direction: column;
    align-items: center;
}
.videos-row.icon-view .video img {
    width: 100%;
    max-width: 240px;
}
.videos-row.icon-view .video h3 {
    font-size: 0.95rem;
    text-align: center;
    margin-top: 6px;
}

/* --- Full-Width Stretch Tabs With Separators --- */
.tab-bar {
    display: flex;
    width: 100%;
    margin: 10px 0;
    position: sticky;
    top: 46px;
    z-index: 1000;
}
.tab-bar a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
    background: #d40000;   /* Red background */
    color: white;          /* White text */
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s;
    border-right: 2px solid #ffffff55; /* Light separator */
}

/* Remove the last separator */
.tab-bar a:last-child {border-right: none;}
.tab-bar a:hover {background: #b30000;}

/* Tablet query */
@media (max-width: 1024px) {
img {width: 23%;}
.videos-row.icon-view {
grid-template-columns: repeat(3, 1fr);
}
.tab-bar a {
    font-size: 0.9rem;
    padding: 12px 0;
}
}

/* Phone query */
@media (max-width: 768px) {
.tab-bar {top: 45px;}

/* Duration badge tweak */
.duration {
    bottom: 9px;
    right: 7px;
}
/* LIST VIEW duration positioning */
.videos-row:not(.icon-view) .duration {
    bottom: 4px;
    right: 12px;
}
.thumb {width: auto;}
.tab-bar a {
    font-size: 0.8rem;
    padding: 10px 0;
}
/* ===== ICON VIEW (phone) ===== */
.videos-row.icon-view {
    display: grid;
    grid-template-columns: 1fr; /* single-column grid */
    gap: 14px;
}
.videos-row.icon-view .video a {
    flex-direction: column;
    align-items: center;
}
.videos-row.icon-view .video img {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
}
.videos-row.icon-view .video h3 {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 6px;
}
/* ===== LIST VIEW (phone) ===== */
.videos-row:not(.icon-view) .video a {
    flex-direction: row;
    align-items: center;
}
.videos-row:not(.icon-view) .video img {
    width: 120px;
    margin-right: 10px;
}
.videos-row:not(.icon-view) .video h3 {
    font-size: 0.85rem;
    text-align: left;
}
}
